package com.qingkai.onlineshop.data.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.qingkai.onlineshop.data.entity.BannerEntity

@Dao
interface BannerDao {
    @Insert
    suspend fun insertAll(banners: List<BannerEntity>)

    @Query("SELECT * FROM banner")
    suspend fun getAll(): List<BannerEntity>
}